package dao.impl;

import java.sql.SQLException;
import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import module.BasicSize;
import dao.ABSBasicDAO;

/**
 * 
* @ClassName: BasicSizeDAOImpl
* @Description: 房屋尺寸DAO实现类
* @author chenchao
* @date 2013-10-30 上午03:50:14
*
 */
public class BasicSizeDAOImpl  extends ABSBasicDAO<BasicSize>{
	/**
	 * 构造方法
	 * @param sqlMapClient
	 */
	public BasicSizeDAOImpl(SqlMapClient sqlMapClient) {
		super(sqlMapClient);
	}
	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getAll()
	 */
	@Override
	public List<BasicSize> getAll() throws SQLException {
		// TODO Auto-generated method stub
		return sqlMapClient.queryForList("BasicSize.getAll");
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getById(java.lang.String)
	 */
	@Override
	public BasicSize getById(String id) throws SQLException {
		// TODO Auto-generated method stub
		return (BasicSize)sqlMapClient.queryForObject("BasicSize.getById",id);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#getByPK()
	 */
	@Override
	public BasicSize getByPK() {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#insertT(java.lang.Object)
	 */
	@Override
	public void insertT(BasicSize t) throws SQLException {
		sqlMapClient.insert("BasicSize.insertBasicSizeInfo", t);
	}

	/* (non-Javadoc)
	 * @see dao.ABSBasicDAO#updateT(java.lang.Object)
	 */
	@Override
	public void updateT(BasicSize t) throws SQLException {
		sqlMapClient.update("BasicSize.BasicSize", t);
	}

}
